package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.BankCompanyMapper;
import com.ruoyi.house_sale.domain.BankCompany;
import com.ruoyi.house_sale.service.IBankCompanyService;

/**
 * 公司银行账户Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class BankCompanyServiceImpl implements IBankCompanyService 
{
    @Autowired
    private BankCompanyMapper bankCompanyMapper;

    /**
     * 查询公司银行账户
     * 
     * @param bankaccount 公司银行账户主键
     * @return 公司银行账户
     */
    @Override
    public BankCompany selectBankCompanyByBankaccount(String bankaccount)
    {
        return bankCompanyMapper.selectBankCompanyByBankaccount(bankaccount);
    }

    /**
     * 查询公司银行账户列表
     * 
     * @param bankCompany 公司银行账户
     * @return 公司银行账户
     */
    @Override
    public List<BankCompany> selectBankCompanyList(BankCompany bankCompany)
    {
        return bankCompanyMapper.selectBankCompanyList(bankCompany);
    }

    /**
     * 新增公司银行账户
     * 
     * @param bankCompany 公司银行账户
     * @return 结果
     */
    @Override
    public int insertBankCompany(BankCompany bankCompany)
    {
        return bankCompanyMapper.insertBankCompany(bankCompany);
    }

    /**
     * 修改公司银行账户
     * 
     * @param bankCompany 公司银行账户
     * @return 结果
     */
    @Override
    public int updateBankCompany(BankCompany bankCompany)
    {
        return bankCompanyMapper.updateBankCompany(bankCompany);
    }

    /**
     * 批量删除公司银行账户
     * 
     * @param bankaccounts 需要删除的公司银行账户主键
     * @return 结果
     */
    @Override
    public int deleteBankCompanyByBankaccounts(String[] bankaccounts)
    {
        return bankCompanyMapper.deleteBankCompanyByBankaccounts(bankaccounts);
    }

    /**
     * 删除公司银行账户信息
     * 
     * @param bankaccount 公司银行账户主键
     * @return 结果
     */
    @Override
    public int deleteBankCompanyByBankaccount(String bankaccount)
    {
        return bankCompanyMapper.deleteBankCompanyByBankaccount(bankaccount);
    }
}
